package com.fenghongzhang.day014;

import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class MyAdapter extends BaseQuickAdapter<Search, BaseViewHolder> {

    @Override
    protected void convert(BaseViewHolder helper, Search item) {
        TextView name = helper.getView(R.id.name);
        name.setText(item.getName());
        helper.addOnClickListener(R.id.del_img);
    }

    public MyAdapter(int layoutResId, @Nullable List<Search> data) {
        super(layoutResId, data);
    }
}
